package cn.iocoder.an.module.mold.controller.admin.upkeeptask.vo;

import cn.idev.excel.annotation.ExcelProperty;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import java.util.*;
import jakarta.validation.constraints.*;
import org.springframework.format.annotation.DateTimeFormat;
import java.time.LocalDateTime;

@Schema(description = "管理后台 - 模具保养任务新增/修改 Request VO")
@Data
public class UpkeepTaskSaveReqVO {

    @Schema(description = "主键", requiredMode = Schema.RequiredMode.REQUIRED, example = "20225")
    private Long id;

    @Schema(description = "保养单号", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotEmpty(message = "保养单号不能为空")
    private String code;

    @Schema(description = "图号id", requiredMode = Schema.RequiredMode.REQUIRED, example = "16527")
    @NotNull(message = "图号id不能为空")
    private Long drawingNoId;

    @Schema(description = "模具id", requiredMode = Schema.RequiredMode.REQUIRED, example = "11520")
    @NotNull(message = "模具id不能为空")
    private Long accountId;

    @Schema(description = "指派人Id", requiredMode = Schema.RequiredMode.REQUIRED, example = "6308")
    @NotNull(message = "指派人Id不能为空")
    private Long assigneerId;

    @Schema(description = "责任人ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "661")
    @NotEmpty(message = "维修人不能为空")
    private List<Long> assigneerIds;

    @Schema(description = "保养类型id", example = "15479")
    private Long upkeepId;

    @Schema(description = "任务状态", example = "2")
    private Integer status;

    @Schema(description = "计划保养日期")
    private LocalDateTime nextUpkeepTime;

    @Schema(description = "实际保养日期")
    private LocalDateTime realUpkeepTime;

    @Schema(description = "作业开始时间")
    private LocalDateTime jobStartTime;

    @Schema(description = "任务下达时间")
    private LocalDateTime taskCreateTime;

    @Schema(description = "任务接收时间")
    private LocalDateTime taskReceiveTime;


    @Schema(description = "任务开始时间")
    private LocalDateTime taskStartTime;

    @Schema(description = "任务结束时间")
    private LocalDateTime taskEndTime;

    @Schema(description = "任务执行时长")
    private Double taskExecutionDuration;

    @Schema(description = "审核说明")
    private String auditDescription;

    @Schema(description = "描述")
    private String  description;

}